<template>
	<viewFile v-bind:wpsUrl="jwpsUrl" v-bind:token="jtoken" />
</template>
<script>
import viewFile from '@/components/wps-view/view.vue';
export default {
	data() {
		return {
			jwpsUrl: '',
			jtoken: ''
		};
	},
	created() {
		this.jwpsUrl = sessionStorage.wpsUrl;
		this.jtoken = sessionStorage.token;
		if (sessionStorage.getItem('fileName')) {
			// 配置浏览器标题和图标
			let title = sessionStorage.getItem('fileName');
			document.title = title;
		}
	},
	// 通过组件渲染wps的 iframe 框架
	components: {
		viewFile
	}
};
</script>
